function tabChange(obj,id)
{
 var arrayli = obj.parentNode.getElementsByTagName("li"); //获取li数组
 var arrayul = document.getElementById(id).getElementsByTagName("ul"); //获取ul数组
 for(i=0;i<arrayul.length;i++)
 {
  if(obj==arrayli[i])
  {
   arrayli[i].className = "cli";
   arrayul[i].className = "";
  }
  else
  {
   arrayli[i].className = "";
   arrayul[i].className = "hidden";
  }
 }
}


// JavaScript Document
<!-- 广告位：手机端判断跳转 -->
 
var $thispath=window.location.pathname;
var $mobiledomain="https://m.diyijuzi.com";
var $newurl=$mobiledomain+=$thispath;

if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)))


{window.location.href=$newurl;}